package com.chuanke.ckfamily.dao.finance;
import com.chuanke.ckfamily.dao.finance.model.RedPacket;
import com.weijie.core.BaseDao;

import org.apache.ibatis.annotations.Param;

import java.sql.Timestamp;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public interface RedPacketDao extends BaseDao<RedPacket> {

    List<RedPacket> findHistory(@Param("param")Map<String, Object> param);

    Long countHistory(@Param("param") Map<String, Object> param);

    Long sumHistory(@Param("param") Map<String, Object> param);

    List<RedPacket> findNeedClosed(@Param("time")Timestamp time);

    List<RedPacket> findNeedClean(@Param("time")Timestamp time);

	RedPacket findByIdForUpdate(@Param("id")Long id);

	List<Map<String,Object>> findFalsePacket();

}